﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DanhMucConsWUC.ascx.cs" Inherits="WebRaoVat.DanhMucConsWUC" %>
<asp:DataList ID="DataList1" runat="server"
                         RepeatColumns="3"
                        RepeatDirection="Horizontal">
                        
    <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" Height="100px" 
                                ImageUrl='<%# Eval("Thumbnail", "~/{0}") %>' 
                                ToolTip='<%# Eval("MaDanhMucCon") %>' Width="100px" />
                            <br />
                            <asp:HyperLink ID="HyperLink1" runat="server"
                            style="text-decoration:none; color:#0034b8; font-size:small"
                                NavigateUrl='<%# Eval("MaTinRaoVat", "~/ChiTietTinRao.aspx?MaTin={0}") %>' 
                                Text='<%# Eval("TenTinRaoVat") %>' ToolTip='<%# Eval("TenTinRaoVat") %>' 
                                Width="230px"></asp:HyperLink>
                            <br />
                            <%if (maNgonNgu == 1)
                              {%>
                                <asp:Label ID="GiaTienLabel" runat="server" style="color:Red; font-size:medium" 
                                    Text='<%# Eval("GiaTien", "{0} VNĐ") %>' />  
                            <%}
                              else
                              {
                                  %>
                                  <asp:Label ID="Label1" runat="server" style="color:Red; font-size:medium" 
                                    Text='<%# Eval("GiaTien", "{0} USD") %>' />  
                                  <%
                              } %>
                            
                            <br />
                            <br />
                        </ItemTemplate>
</asp:DataList>
